<?Php
	session_start();
	require("func.php");
	$clavecliente=$_SESSION['cvecliente'];
	$sql="select codigo,cantidad,precio,descuento,surtido,importe,equivale from swpr_pedidos where cliente=$clavecliente order by id_serial desc ";
	


?>
<html>
<head>
    <script src="../runtime/lib/aw.js"></script>
    <link href="../runtime/styles/xp/aw.css" rel="stylesheet"></link>
	<style type="text/css">
#myGrid {height: 150px; width: 792px; z-index:-1}
#myGrid .aw-column-1 {border-right: 1px solid #ccc;}
#myGrid .aw-column-2 {border-left: 1px solid #ccc;}

</style>
</head>
<body>
<script>

var obj = new AW.UI.Grid;
    obj.setCellData(function(col, row){return col + "." + row});
    obj.setHeaderText("header");

    obj.setColumnCount(10);
    obj.setRowCount(10);

    function image(col, row){
		/*
        if (this.getCellText(0,row) == "0.1") {
            return "search";
        }
        else {
            return "favorites";
        }*/
		if(col==0){
            return "search";
        }else if(col==1){
            return "favorites";
		}
    }

    obj.setCellTemplate(new AW.Templates.Image, 0);
	obj.setCellTemplate(new AW.Templates.Image, 1);
    obj.setCellImage(image, 0);
	obj.setCellImage(image, 1);


    document.write(obj); 

</script>

<table cellpadding='0' cellspacing='0' border='0' align='left' valign='top'>
<tr>
	<td>
	<script>
	//document.write(obj); 
	</script>
	</td
</tr>
</table>
<script>//document.write(grid2); </script>

</body>
</html>